<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">
			div{
				width: 100%;
				height: 50px;
				background-color: #6495ED;
				margin-bottom: 10px;
				position: relative;
				float: left;
			}
			button{
				position: absolute;
				top: 0;
				right: 0;
				background-color: #fff;
			}
		</style>
		
	</head>
	<body>
		<div id="app">
			<div>
				<button @click="sub">x</button>
			</div>
			<div v-show="isshow" style="background-color: #000;">
				<button @click="sub">x</button>
			</div>
			<div class="">
				<button @click="sub">x</button>
			</div>
			<div class="">
				<button @click="sub">x</button>
			</div>
		</div>
		
		<script type="text/javascript">
		var app = new Vue({
			el:'#app',
			data:{
				isshow:true,
			},
			methods:{
				sub:function(){
					this.isshow = false;
				}
			}
		})
	</script>
		
	</body>
	
</html>
